/*
 * @Description: text
 * @LastEditors: 蔡霸霸
 * @LastEditTime: 2021-02-26 20:29:55
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VueMeta from 'vue-meta'
import FastClick from 'fastclick'

import mockData from './data'

import {
  Tabbar,
  TabbarItem,
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  Lazyload,
  Tag
} from 'vant'

import { getMyWebSocket } from '@/utils/socket'
Vue.prototype.$mockData = mockData

Vue.config.productionTip = false
FastClick.attach(document.body)

Vue.use(VueMeta)
Vue.prototype.$socket = getMyWebSocket

Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Lazyload)
Vue.use(Tag)
Vue.use(GoodsAction)
Vue.use(GoodsActionButton)
Vue.use(GoodsActionIcon)

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
